package com.testmall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
  * @Description: 
  * @Author: littleDesire
  * @Date: 2022-06-21 14:29
  * @Version: 1.0
  * 
  */
@ApiModel(value="com-testmall-entity-Cart")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "cart")
public class Cart implements Serializable {
    @TableId(value = "carid", type = IdType.INPUT)
    @ApiModelProperty(value="")
    private String carid;

    /**
     * 用户表id
     */
    @TableField(value = "userid")
    @ApiModelProperty(value="用户表id")
    private String userid;

    /**
     * 商品id
     */
    @TableField(value = "proid")
    @ApiModelProperty(value="商品id")
    private String proid;

    /**
     * 数量
     */
    @TableField(value = "quantity")
    @ApiModelProperty(value="数量")
    private Integer quantity;

    /**
     * 是否选择,1=已勾选,0=未勾选
     */
    @TableField(value = "checked")
    @ApiModelProperty(value="是否选择,1=已勾选,0=未勾选")
    private Integer checked;

    /**
     * 创建时间
     */
    @TableField(value = "createtime")
    @ApiModelProperty(value="创建时间")
    private Date createtime;

    /**
     * 更新时间
     */
    @TableField(value = "updatetime")
    @ApiModelProperty(value="更新时间")
    private Date updatetime;

    private static final long serialVersionUID = 1L;

    public static final String COL_CARID = "carid";

    public static final String COL_USERID = "userid";

    public static final String COL_PROID = "proid";

    public static final String COL_QUANTITY = "quantity";

    public static final String COL_CHECKED = "checked";

    public static final String COL_CREATETIME = "createtime";

    public static final String COL_UPDATETIME = "updatetime";
}